package com.woniuxy.caradmin.service.impl;

import com.woniuxy.caradmin.entity.pojo.Repairrecord;
import com.woniuxy.caradmin.entity.vo.RepairrecordVo;
import com.woniuxy.caradmin.mapper.RepairrecordMapper;
import com.woniuxy.caradmin.service.RepairrecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author womenzu
 * @since 2020-12-07
 */
@Service
public class RepairrecordServiceImpl implements RepairrecordService {
    @Autowired
    private RepairrecordMapper repairrecordMapper;

    @Override
    public List<Repairrecord> selectAllReapairRecord(RepairrecordVo repairrecordVo) {
        return repairrecordMapper.selectAllReapairRecord();
    }

    @Override
    public List<Repairrecord> selectAllRepariRecordByVid(String vehiclenum) {
        return repairrecordMapper.selectAllRepariRecordByVid(vehiclenum);
    }

    @Override
    public int addRepairRecord(Repairrecord repairrecord) {
        return repairrecordMapper.addRepairRecord(repairrecord);
    }

    @Override
    public int updateRepairRecord(Repairrecord repairrecord) {
        return repairrecordMapper.updateRepairRecord(repairrecord);
    }

    @Override
    public int deleteRepairRecord(Integer id) {
        return repairrecordMapper.deleteRepairRecord(id);
    }
}
